package com.mengshu.token.storage;

import com.mengshu.token.api.LoginUser;

import java.util.Set;

/**
 * <p>
 *     token存储
 * </p>
 *
 * @author liuning
 * @date 10:59 下午 2022/1/28
 */
public interface UserStorage {

    LoginUser get(String token);

    LoginUser get(String token, long timeout);

    Set<String> pattern(String pattern);

    void set(String token, LoginUser loginUser, long timeout);

    void set(String token, LoginUser loginUser);

    void del(String token);
}
